﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.SessionState;
using System.Web.Mvc;
using IFPRJ.EF.DALayer;
using IFPRJ.EF.DALayer.Providers.Sqlserver;
using IFPRJ.EF.Model;
using IFPRJ.EF.Components;

namespace IFPRJ.Areas.Front
{
    public class HomeController : FrontBaseController
    {

        // GET: /Home/
        IPost newsprovider = new PostProvider();
        public ActionResult Index()
        {

            return View();
        }
        [HttpPost]
        [ValidateInput(false)]
        public ActionResult Index(Post _post, string FckTextBox)
        {

            _post.Context = FckTextBox;
            _post.Date_Post = DateTime.Now;
            newsprovider.PostCreate(_post);
            return View();
        }

    }
}
